package com.glasses.service;

import com.alibaba.fastjson.JSONObject;
import com.glasses.orm.base.baseImp.BaseServiceInterface;

import java.util.Map;

/**
 * Created by ashin on 2018/10/11.
 */
public interface TicketService extends BaseServiceInterface {

    /**
     * 生成优惠券
     * @param map
     * @return
     * @throws Exception
     */
    JSONObject generate(Map map) throws Exception;

    /**
     * 获得票的状态
     * @param map
     * @return
     * @throws Exception
     */
    JSONObject getTicket(Map map) throws Exception;

    /**
     * 领取票
     * @param map
     * @return
     * @throws Exception
     */
    JSONObject receiveTicket(Map map) throws Exception;
}
